package com.fire.core.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fire.core.dao.DBManagerDao;




@Service
public class DBManagerService {
    @Resource
    DBManagerDao dbManagerDao;

    public void resetSeqValue(String seqName) {
        dbManagerDao.initSeq(seqName, 0, 1);
    }

    public int getSeqNextValue(String seqName) {
        return dbManagerDao.getSeq(seqName);
    }

    public String getNextStringValue(String seqName) {
        return dbManagerDao.getNextStringValue(seqName);
    }
}
